package com.damai.param;

import com.damai.error.ApiError;

public class RequireValidate implements IParamValidate {

	private String message;
	
	public RequireValidate(String message) {
		this.message = message;
	}
	
	@Override
	public void validateParam(Object value) {
		if(value == null){
			throw new ApiError(message);
		}
	}

}
